import { createPinia } from 'pinia'
import piniaPluginPersistedstate from "pinia-plugin-persistedstate";

const store = createPinia()
store.use(piniaPluginPersistedstate);

// 全局注册 store
export function setupStore(app) {
  app.use(store)
}

export * from "./modules/permission-store"
export * from "./modules/user-store";
export * from "./modules/app-store";
export * from "./modules/settings-store";
export { store }
